<?php
/**
 * recent.phtml
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  BlogAdmin
 */
?>
<div class="post-comments">
    <?php if (count($this->comments)) : ?>
    <ul class="comments-list">
        <?php foreach($this->comments as $comment) : ?>
        <li class="n<?php echo $this->alternate(array(0,1)); ?>">
            <h3>
                <a href="<?php echo $this->url(array('controller' => 'comment', 'action' => 'read', 'id' => $comment->id), 'blog_admin', true); ?>">
                    <?php echo $comment->post_title; ?>
                </a>
            </h3>
            <span class="name">
                <a href="<?php echo $this->url(array('controller' => 'comment', 'action' => 'read', 'id' => $comment->id), 'blog_admin', true); ?>">
                    <?php echo $comment->name ?>
                </a>
            </span>
            <span class="date">
                <?php echo $this->date($comment->posted); ?>
            </span>
            <div class="content">
                <?php echo $comment->content; ?>
            </div>
            
        </li>
        <?php endforeach; ?>
    </ul>
     <?php else : ?>
    <p>
        There aren't any comments to your posts yet.
    </p>
    
    <?php endif; ?>
</div>